package pl.register.android.chapter;

import java.io.Serializable;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-12
 */

public class ChapterTitle implements Serializable {

    private Long id;

    private String title;

    public ChapterTitle(Long id, String title) {
        this.id = id;
        this.title = title;
    }

    public ChapterTitle(String title) {
        this.id = null;
        this.title = title;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "ChapterTitle{" +
                "id=" + id +
                ", title='" + title + '\'' +
                '}';
    }
}